package com.javafactroy.kunlong.bip.icp.common.config;

import org.apache.commons.pool2.impl.GenericObjectPoolConfig;
import org.springframework.stereotype.Component;

/**
 * @author leijmdas
 * @remark test
 *
 */
@Component
public class BipPoolConfig extends GenericObjectPoolConfig {
    public BipPoolConfig() {
        super();
        setMaxTotal(100);
        setMaxIdle(20);
        setMinIdle(5);
        //        setBlockWhenExhausted(true);
        //        setTestOnBorrow(true);
        //       setTestOnReturn(true);
        setTimeBetweenEvictionRunsMillis(60000);
        setTestWhileIdle(false);
    }
}
